<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>2.zxt </title>
    <style>
        #mycharts {
            width: 800px;
            height: 500px;
            margin: 50px auto;
            background-color: skyblue;
        }
    </style>
</head>

<body>
    <div id="mycharts"></div>
</body>
<script src="./a//echarts.min.js"></script>
<script>
    const mycharts = document.querySelector('#mycharts')

    const charts = echarts.init(mycharts)
    const option = {
        xAxis: {
            type: 'category',
            data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
        },
        yAxis: {
            type: 'value'
        },
        series: [{
            data: [120, 200, 150, 80, 70, 110, 130],
            type: 'bar'
        }]
    };
    charts.setOption(option)
</script>

</html>